package com.tongji.housediy.view
{
	import com.tongji.housediy.events.commonEvent.MouseEnabledAdminEvent;
	import com.tongji.housediy.model.BrandModel;
	import com.tongji.housediy.model.CompEnableStateModel;
	import com.tongji.housediy.utils.ConstVariableInventory;
	import com.tongji.housediy.vo.Goods;
	
	import mx.binding.utils.BindingUtils;
	
	import org.robotlegs.mvcs.Mediator;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class BrandsViewStackMediator extends Mediator
	{
		[Inject]
		public var view:BrandsViewStack;
		
		[Inject]
		public var enableModel:CompEnableStateModel;
		
		[Inject]
		public var brandModel:BrandModel;
		
		override public function onRegister():void
		{	
			BindingUtils.bindProperty(view, "selectedIndex", enableModel, "stateIndex");
			BindingUtils.bindProperty(view.allBrandList.dataGroup, "dataProvider", brandModel, "brandList");
		}		
	}
}